package Pages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

public class RegistPage {
	private static WebElement element = null;

	public static WebElement Page_telephone(WebDriver driver) {
		element = driver.findElement(By.id("txtPhone"));
		return element;
	}

	public static WebElement Page_password(WebDriver driver) {
		element = driver.findElement(By.id("txtPassWord"));
		return element;
	}

	public static WebElement Page_confirmpassword(WebDriver driver) {
		element = driver.findElement(By.id("txtPassWord2"));
		return element;
	}

	public static WebElement Page_verificationcode(WebDriver driver) {
		element = driver.findElement(By.id("txtPictureCode"));
		return element;
	}

	public static WebElement Page_sendcode(WebDriver driver) {
		element = driver.findElement(By.id("btnSendPhoneMessage"));
		return element;
	}

	public static WebElement Page_SMSverificationcode(WebDriver driver) {
		element = driver.findElement(By.id("txtPhoneCode"));
		return element;
	}

	public static WebElement Page_register(WebDriver driver) {
		element = driver.findElement(By.xpath(".//*[@id='page']/div/form/div[14]/div/a"));
		return element;
	}
}
